import React from 'react';
import './App.css';
import Home from './view/Home';

import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'

import { mainRouter } from './router/Router';

class App extends React.Component {
  render() {
    return (
      <Router>
        <Switch>
            <Route path='/' exact component={Home}></Route>
            {/* <Route path='/login' strict component={Login}></Route>
            <Route path='/test' exact component={Test}></Route>
            <Route path='/classTable' exact component={ClassTable}></Route>
            <Route path='/studentTable' exact component={StudentTable}></Route>
            <Route path='/weightInputGroup' exact component={WeightInputGroup}></Route>
            <Route component={NotFound}></Route> */}
            {mainRouter.map((route) => {
              return (
                <Route key={route.path} {...route} />
              )
            })}
            
        </Switch>
      </Router>
    );
  }
}

export default App;

// git嵌套测试
